package com.java.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.java.dao.DiaryTypeDao;
import com.java.entity.DiaryType;
import com.java.service.DiaryTypeService;

@Service("diaryTypeService")
public class DiaryTypeServiceImpl implements DiaryTypeService{

	@Resource
	private DiaryTypeDao diaryTypeDao;
	
	@Override
	public List<DiaryType> findAll() {
	
		return diaryTypeDao.findAll();
	}

	@Override
	public List<DiaryType> countList() {
		
		return diaryTypeDao.countList();
	}

	/*@Override
	public List<Diary> findtypeNameBydiaryId(Integer diaryTypeId) {

		return diaryTypeDao.findtypeNameBydiaryId(diaryTypeId);
	}*/

}
